package com.zhxy.manager.dao;

import com.zhxy.manager.entity.Equipment;
import com.zhxy.manager.excel.EquipmentExcel;

import java.util.List;

public interface EquipmentDao {
    //增加
    int add(Equipment equipment);
    //查询全部
    List<Equipment> selectAll();
    //删除
    int del(int id);
    //修改
    int update(Equipment equipment);
    //查询，带条件 动态sql
    List<Equipment> selectWhere(String name);
    //批量删除
    int delBatch(int[] ids);
    //数据批量加入
    int addBatch(List<EquipmentExcel> equipment);
}
